package com.so206.service;

import com.github.pagehelper.PageInfo;
import com.so206.po.SystemOrder;
import com.so206.po.ext.SystemOrderExt;

import java.util.List;

public interface OrderService {

    Long createOrder(SystemOrder order);

    SystemOrder findOrderById(Long id);

    void updateOrder(SystemOrder order);

    void deleteOrder(Long orderid);

    SystemOrder findOrderByOutOrderId(String id);

    PageInfo<SystemOrder> findByPage(Integer page, Integer rows);

    PageInfo<SystemOrderExt> findByPage2(Integer page, Integer rows, Long uid, Integer status, Integer payType, String outOrderId, Integer order_type, Long oid);

    List<SystemOrder> findOrderByStatus(Integer status);

    List<SystemOrder> findOrderByStatus(Integer status, Integer sett);

    Integer countOrderPayType(Integer payType, String timelike, String end_time);

    List<SystemOrder> findOrderList2(Integer status, Integer is_notify, Integer order_type);

    PageInfo<SystemOrderExt> findByPage3(Integer page, Integer rows, Long uid, Integer status, Integer payType, String outOrderId, Integer order_type, Long oid);

    SystemOrder find_orderByTradeNo(String to);

    void delete_old_data();

}
